package com.gong.datareceive.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description
 * @Author gongchang
 * @Date 2021-08-15 14:02
 */
@lombok.Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("data")
@ApiModel("数据表")
public class Data extends BaseEntity implements Serializable {
    @TableField("grandid")
    @ApiModelProperty("地面站id")
    private int grandid;

    @TableField("equid")
    @ApiModelProperty("设备id")
    private int equid;

    @TableField("digital")
    @ApiModelProperty("检测数据")
    private double digital;

    @TableField("time")
    @ApiModelProperty("检测时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date time;
}
